import request from '/@/utils/request'

//获取系统环境信息
export const systemSysInfo = (params?: any) => request.get('/setting/sysInfo', params);

//获取系统消息列表
export const systemMessageList = (params?: any) => request.get('/setting/sysMessageList', params);

//清除系统缓存
export const systemClearCache = (params?: any) => request.post('/setting/clearCache', params);

// 获取操作日志列表
export const systemLogLists = (params?: any) => request.get('/setting/log/lists', params);

// 获取操作日志详情
export const systemLogDetail = (params?: any) => request.get('/setting/log/detail', params);

// 获取队列日志列表
export const queueLogLists = (params?: any) => request.get('/setting/queue/lists', params);

// 获取队列日志详情
export const queueLogDetail = (params?: any) => request.get('/setting/queue/detail', params);

// 获取导出日志列表
export const exportLogLists = (params?: any) => request.get('/setting/export/lists', params);

// 获取导出日志详情
export const exportLogDetail = (params?: any) => request.get('/setting/export/detail', params);

// 导出文件下载
export const exportDownload = (params?: any, callback?:Function) => request.get('/setting/export/download', params, {isDownload:true,callback:callback});

// 删除导出日志
export const exportLogDelete = (params?: any) => request.delete('/setting/export/delete', params);